﻿using SXFramWork.Core;
using SXFramWork.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SXFramWork.Service
{
    public interface ISysJobService
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IApiResult> Add(JobAddModel model);
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IApiResult> Query(JobQueryModel model);
        /// <summary>
        /// 启动/恢复
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IApiResult> Resume(string id);
        /// <summary>
        /// 暂停
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IApiResult> Pause(string id);
        /// <summary>
        /// 停止
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IApiResult> Stop(string id);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IApiResult> Delete(string id);
        /// <summary>
        /// 查看日志
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IApiResult> Log(JobLogQueryModel model);
    }
}
